]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't show expand button for notification banner
authorJulian Sparber <julian@sparber.net>
Tue, 19 Mar 2024 13:06:38 +0000 (14:06 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 19 Apr 2024 13:13:41 +0000 (13:13 +0000)
Currently we expand banners on hover, it's odd that there is also an
expand button the user doesn't have to click.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7479
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3249>

js/ui/messageTray.js

index 1a9ac66555e4575125a4916ddc87684808e919ec..00a2a9b66a1da4d75405094993f79cfce8b8aed1 100644 (file)
@@ -1107,6 +1107,7 @@ export const MessageTray = GObject.registerClass({
 
         this._banner = new Calendar.NotificationMessage(this._notification);
         this._banner.can_focus = false;
+        this._banner._header.expandButton.visible = false;
         this._banner.add_style_class_name('notification-banner');
 
         this._bannerBin.add_child(this._banner);